interface UserSendMessageAPIData {
  recover_user_id: string // 老师的id
  content: string // 内容
  classes_id: string // 班级id
}

interface UserSendMessageAPIResData {
  code: number
  msg: string
  data: null
  time: string
}

/**
 * @description 向教师留言（聊天），发送留言（聊天）数据
 */
export function userSendMessageAPI(data: UserSendMessageAPIData, token: string) {
  return httpInstance.post<UserSendMessageAPIResData, UserSendMessageAPIData>(
    '/api/message/add',
    data,
    { headers: { token } },
  )
}
